package top.chmin.project.cloud.sys.index.info;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import top.chmin.project.cloud.common.Page;
import java.time.LocalDateTime;



/**
 * chmin
 * 2024-01-26 13:55:57
 * cloud-code
 */
public interface IndexInfoPageRest {

    @PostMapping("/cloud-code/indexInfo/auto/page")
    Page<R> page(@RequestBody P p);

    @Getter
    @Setter
    @Accessors(chain = true)
    class P extends Page<R> {
        /*###########auto#start###########*/
        // index编号
        private String indexCode;
        // index名称
        private String indexName;
        // index唯一性
        private String indexUnique;
        // table编号
        private String tableCode;
        /*###########auto##end############*/
        /* append $modelFieldAppender$ */
        private String createBy;
        private String updateBy;
        private LocalDateTime[] createTime;
        private LocalDateTime[] updateTime;
    }

    @Getter
    @Setter
    @Accessors(chain = true)
    class R {
        private Integer id;
        /*###########auto#start###########*/
        // index编号
        private String indexCode;
        // index名称
        private String indexName;
        // index唯一性
        private String indexUnique;
        // table编号
        private String tableCode;
        /*###########auto##end############*/
        /* append $modelFieldAppender$ */
        /* append $restRelateAppender$ */
        /*###########auto#start###########*/
        private String indexUniqueText;

        /*###########auto##end############*/
        /* append $restDictAppender$ */
        private String createBy;
        private String updateBy;
        private LocalDateTime createTime;
        private LocalDateTime updateTime;
    }

}
